import request from '@/utils/request'

// 获取城市列表
export const cityList = (params) => {
  return request({
    method: 'GET',
    url: '/area/city',
    params
  })
}

// 获取热门城市
export const hotCity = () => {
  return request({
    method: 'GET',
    url: '/area/hot'
  })
}

// 根据城市名称查询该城市信息
export const cityInfo = (label) => {
  return request({
    method: 'GET',
    url: '/area/info',
    params: {
      name: label
    }
  })
}
